package net.hzlj.platform.enterprise.common;

/**
 * @ClassName: Constant
 * @Description: 常用的参数已经配置文件
 * @Author: Jason Zhang
 * @Date: 2015-12-2 16:14:08
 */
public class Constant {

    public static final boolean DEBUG = false;

    //设置当前的项目，默认基线版本
    public static String PROJECT_NAME = "RL_ZhangJiaJie_Hosting";
    public static String BASE_FOLDER = PROJECT_NAME;

    //Bugly(https://bugly.qq.com/v2/index)
    public interface Bugly{
        String APP_ID = "1b4c6b2b4d";
        String APP_KEY = "728da7e9-4b37-424f-849b-7349e297d29e";
        String APP_CHANNEL = "慧智灵杰";
        long APP_REPORT_DELAY = 10L;
        long INIT_DELAY = 500L;
    }

    //百度定位(http://lbsyun.baidu.com/)
    public interface BaiDu{
        String MAP_DEVELOP_SHA1 = "DB:BA:25:C4:43:BB:02:3B:7B:B8:9F:18:AA:A2:2F:9F:E3:BD:BE:C6";
        String MAP_RELEASE_SHA1 = "79:B9:8E:15:3A:A7:C1:EF:AA:6A:F8:E2:01:E5:AA:48:B5:E9:94:74";
    }

    public interface DB{
        String DB_NAME = Constant.PROJECT_NAME;
        int DB_VERSION = 3;
    }

    public interface Intent{

        String ACTION_APP_INIT = "hzlj.intent.action.APP_INIT";
        String ACTION_UPDATE_FACE_NATIVE = "hzlj.intent.action.UPDATE_FACE_NATIVE";
        String ACTION_UPLOAD_FACE_PHOTO = "hzlj.intent.action.UPLOAD_FACE_PHOTO";
        String ACTION_LOCATION_UPDATE = "hzlj.intent.action.ACTION_LOCATION_UPDATE";

        String ACTION_UPDATE_USER_INFO = "hzlj.intent.action.UPDATE_USER_INFO";
        //启动定位
        String ACTION_SOCKET_START = "hzlj.intent.action.ACTION_SOCKET_START";
        //銷毀定位
        String ACTION_SOCKET_DESTORY = "hzlj.intent.action.ACTION_SOCKET_DESTORY";
        //Socket 处理广播
        String ACTION_SOCKET_RECONNECT = "hzlj.intent.action.ACTION_SOCKET_RECONNECT";
        String ACTION_SOCKET_MESSAGE_SEND = "hzlj.intent.action.ACTION_SOCKET_MESSAGE_SEND";
        String ACTION_SOCKET_MESSAGE_RECEIVED = "hzlj.intent.action.ACTION_SOCKET_MESSAGE_RECEIVED";
        String ACTION_SOCKET_CLOSE = "hzlj.intent.action.ACTION_SOCKET_CLOSE";
        //刷新通知
        String ACTION_REFRESH_NOTIFICATION = "hzlj.intent.action.ACTION_REFRESH_NOTIFICATION";
    }

    public interface Socket{
        int DEFAULT_HEART_BEAT_TIME = 30 * 1000;//30秒
        int DEFAULT_LOCATION_TIME = 10 * 60;//60分钟
        int DEFAULT_RECONNECT_TIME = 15 * 1000;//15秒
        boolean DEFAULT_ALLOW_UNINSTALL = DEBUG;
        String HEART_BEAT_MESSAGE = "HEART";
        int CONNECTION_TIMEOUT_TIME = 30000;//链接超时时间
        //连接方式
        TYPE CONNECTION_TYPE = TYPE.NETTY;
        enum TYPE {
            NINA,NETTY
        }
    }

    //==================设备基本参数======================
    /**当前设备的密度*/
    public static float DENSITY = 0;
    /**当前程序屏幕宽度*/
    public static int SCREEN_WIDTH;
    /**当前程序屏幕高度*/
    public static int SCREEN_HEIGHT;
    /**当前设备真实屏幕宽度*/
    public static int EXACT_SCREEN_WIDTH;
    /**当前设备真实屏幕高度*/
    public static int EXACT_SCREEN_HEIGHT;
    /**屏幕状态栏高度**/
    public static int STATUS_BAR_HEIGHT;

    /** IMEI*/
    public static String IMEI;
    public static String IP;
    //======================END==========================

    public static float PRP_DEFAULT_LIGHTNESS;
    public static int PRP_DEFAULT_SMOOTHNESS;
}
